package ink.yql.service;

import ink.yql.model.User;
import ink.yql.util.RestObject;

public interface UserService {
    RestObject loginByPhoneAndPwd(String phone, String pwd);

    RestObject loginByPhoneAndCode(String phone, String code);

    RestObject loginSendCode(String phone);

    RestObject getById(Integer id);

    RestObject updateById(User user);

    RestObject logout();
}
